package com.bmldyq.family.front.sysManager.proivder;

import com.bmldyq.family.common.vo.AvailableResult;
import com.bmldyq.family.front.sysManager.fallback.CoderProivderFallback;
import com.bmldyq.family.model.SysParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/base/codes")
@FeignClient(value = "base-info",fallbackFactory = CoderProivderFallback.class)
public interface CoderProivder {


    @RequestMapping(value = "/getAll")
    public AvailableResult<SysParam> getAllParam();

    @RequestMapping(value ="/get")
    public AvailableResult<SysParam> get();


}
